@extends('admin.main')
@section('content')
    <div class="admin-content">
        <div class="am-cf am-padding am-padding-bottom-0">
            <div class="am-fl am-cf">
                <strong class="am-text-primary am-text-lg">后台设置</strong>
                /
                <small>员工信息</small>
            </div>
        </div>
        <hr>
        <div class="am-g">
            @include('admin.layouts.adminInfo')
            <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <tbody id="tbody-alert">
                    <tr>
                        <td class="am-hide-sm-only" width="200">
                            手机号码：
                        </td>
                        <td width="500">
                            {{$data->mobile}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            用户名：
                        </td>
                        <td>
                            {{$data->nickname}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            真实姓名：
                        </td>
                        <td>
                            {{$data->realname}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            性别：
                        </td>
                        <td>
                            {{$data->sex==1?'男':'女'}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            出生：
                        </td>
                        <td>
                            {{$data->birthday}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            学历：
                        </td>
                        <td>
                            {{$data->eduName}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            体重：
                        </td>
                        <td>
                            {{$data->weight}}KG
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            政治面貌：
                        </td>
                        <td>
                            {{$data->polityName}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            籍贯：
                        </td>
                        <td>
                            {{$data->native_place}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            民族：
                        </td>
                        <td>
                            {{$data->nationality}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            婚姻：
                        </td>
                        <td>
                            {{$data->marryName}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            身份证号码：
                        </td>
                        <td>
                            {{$data->idcard}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            住宿情况：
                        </td>
                        <td>
                            {{$data->house}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            形象照：
                        </td>
                        <td>
                            @if($data->image && file_exists(ltrim($data->image,'/')))
                                <img src="{{$data->image}}" width="500">
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            身份证正面：
                        </td>
                        <td>
                            @if($data->sfzzm && file_exists(ltrim($data->sfzzm,'/')))
                                <img src="{{$data->sfzzm}}" width="500">
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            身份证反面：
                        </td>
                        <td>
                            @if($data->sfzfm && file_exists(ltrim($data->sfzfm,'/')))
                                <img src="{{$data->sfzfm}}" width="500">
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            户口地址：
                        </td>
                        <td>
                            {{$data->household_address}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            居住地址：
                        </td>
                        <td>
                            {{$data->residential_address}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            紧急联系人：
                        </td>
                        <td>
                            {{$data->contact_person}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            紧急联系号码：
                        </td>
                        <td>
                            {{$data->contact_phone}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            希望薪资：
                        </td>
                        <td>
                            {{$data->salary}}元
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            专业技能：
                        </td>
                        <td>
                            @if($skillNames=$data->skillNames)
                                @foreach($skillNames as $skillName)
                                    {{$skillName}} &nbsp; &nbsp;
                                @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            兴趣爱好：
                        </td>
                        <td>
                            @if($hobbyNames=$data->hobbyNames)
                                @foreach($hobbyNames as $hobbyName)
                                    {{$hobbyName}} &nbsp; &nbsp;
                                @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            岗位：
                        </td>
                        <td>
                            {{$data->jobName}}
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:center;">
                            <h2>额外信息</h2>
                        </td>
                    </tr>
                    <tr>
                        <td>教育背景：</td>
                        <td>
                            @if($option=$data->option)
                            @if($eduBgs=$option['eduBgs'])
                                {{--@foreach($eduBgs as $eduBg)--}}
                                {{--@endforeach--}}
                                {{var_dump($eduBgs)}}
                            @endif
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>工作经历：</td>
                        <td>
                            @if($option=$data->option)
                            @if($workHistorys=$option['workHistorys'])
                                {{var_dump($workHistorys)}}
                            @endif
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>家庭成员：</td>
                        <td>
                            @if($option=$data->option)
                            @if($familys=$option['familys'])
                                {{var_dump($familys)}}
                            @endif
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>个人评价：</td>
                        <td>
                            @if($option=$data->option)
                            @if($comments=$option['comments'])
                                {{var_dump($comments)}}
                            @endif
                            @endif
                        </td>
                    </tr>
                    </tbody>
                </table>
                <button type="button" class="am-btn am-btn-primary"
                        onclick="history.go(-1);">返回</button>
                <br><br><br>
            </div>
        </div>
    </div>
@stop